#ifndef BTFORM_H
#define BTFORM_H

#include <QWidget>
#include <QPixmap>
#include <QMouseEvent>
#include <QMovie>
#include <QDebug>
#include <QLabel>
#include "mlabel.h"

namespace Ui {
class BtForm;
}

class BtForm : public QWidget
{
    Q_OBJECT

public:
    explicit BtForm(QWidget *parent = nullptr);
    ~BtForm();

    void setBtStyle(const QString&icon,const QString&text,int pageId);
     int getpageId() const;
     QMovie* getMov()const;
     QLabel *getEffectLabel() const;
     void cleanBackground();
signals:
    void BtClick(int id);

protected:
    void mousePressEvent(QMouseEvent *event);
private:

private:
    Ui::BtForm *ui;
    int pageId;
    QMovie *mov;
};

#endif // BTFORM_H
